package myjava.trycatch;

public class Root2 {

   public static void main(String[] args) throws Exception {
      System.out.println("getInteger() = " + getInteger());
   }

   public static int getInteger() throws Exception {
      try {
         throw new Exception();
      } catch(Exception e) {
         // this is gonna go through the roof (uncought)
         throw new Exception();
      } finally {
         // but 1 is returned instead - if you omit finally it blows up
         return 1;
      }
   }
}
